Skip to content

ci(template): build cargo-audit against stable rust toolchain#612

Merged
lfrancke merged 1 commit into
mainfrom
ci/daily-security-audit-stable-toolchain
Jul 20, 2026
Merged

ci(template): build cargo-audit against stable rust toolchain#612
lfrancke merged 1 commit into
mainfrom
ci/daily-security-audit-stable-toolchain

Conversation

@lfrancke

@lfrancke lfrancke commented Jul 20, 2026

Copy link
Copy Markdown
Member

Description

The daily security audit has been failing for a couple of days because a dependency of cargo-audit (kstring) now requires Rust 1.96.0 to build. See one example
(general_daily_security.yml)

This PR makes it so that cargo-audit builds against the current stable version instead of our pinned one.
I'm fairly certain this fixes the issue itself but the cost will be a slightly longer runtime because it needs to download the second toolchain I guess. Opinions welcome.

Edit: I just realize that runtime doesn't matter much for the nightly cron job...

@StefanFl @dervoeti Not sure if we even still want/need these runs at all?

The daily security audit builds cargo-audit from source using the
toolchain pinned in rust-toolchain.toml. A transitive build dependency
(kstring 2.0.4) now requires Rust 1.96.0, which is newer than the pinned
channel, so the build fails and the audit never runs.

Override RUSTUP_TOOLCHAIN=stable for the audit step so cargo-audit is
built with current stable. The toolchain used to build the tool does not
affect the audit result, so this is safe.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@dervoeti dervoeti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
We can think about making these failures visible in SecObserve in the future or moving this check to somewhere else (like our daily scanning of the release images). Not urgent though, can be part of a future rework.

@lfrancke
lfrancke added this pull request to the merge queue Jul 20, 2026
Merged via the queue into main with commit 272b393 Jul 20, 2026
2 checks passed
@lfrancke
lfrancke deleted the ci/daily-security-audit-stable-toolchain branch July 20, 2026 08:04
@dervoeti dervoeti moved this from Development: Waiting for Review to Development: Done in Stackable Engineering Jul 20, 2026
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants